<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>JWindow插件测试</title>
	<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
	<link href="src/css/JWindow.css" rel="stylesheet" type="text/css" />

	<style>
		body {background:url(img/bg_1.jpg) repeat;}
	</style>
</head>

<body>
<div class="container" style="text-align: center; padding-top: 10px;">
	<button onclick="addWindow();" class="btn btn-primary btn-lg">添加任务</button>
</div>
<div id="testdiv" style="display:none">
	<h4>
		GIT项目地址： <a href="https://git.oschina.net/blackfox/JWindow">https://git.oschina.net/blackfox/JWindow</a>
	</h4>
</div>

<!--<iframe width="100%" scrolling="no" frameborder="0" src="http://www.baidu.com" style="background-color: transparent; height: 619px;"></iframe>-->

<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script language="javascript" src="src/js/JWindow.js" ></script>
<script language="javascript">


	function addWindow() {
		//窗体配置
		var config = {
			helper : 'resize_helper',
			title : '测试窗口',
			content : document.getElementById('testdiv').innerHTML,
			skin : 'default',
			width : 80,
			height :80,
			task_title : "test task",
			desk_id : 1,
			icon_src : 'img/mid.png'
		};
		var _t = new Task(config);
		JTaskBar.addTask(_t);
	}

	//addWindow();
</script>

</body>

</html>

